package com.jiuye;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动项
 *
 * @author likeWen
 * @since 2022/10/31 12:09
 */
@Slf4j
//filter不属于spring的，是web的内容
//启动类添加过滤器扫描注解
@ServletComponentScan
@SpringBootApplication
@EnableTransactionManagement
@EnableCaching //开启spring cache注解方式：缓存功能
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        System.out.println("................................\n" +
                ".▄▄▄▄▄...........▄..............\n" +
                "█▀▀▀▀██▄.........█▄.......▄.....\n" +
                "█.▄...██.........███▄..▄▄██.....\n" +
                "▀█▀...███......▄████████████....\n" +
                "......██▀......████▄████▄███▄...\n" +
                ".....██▀.......▀████▀▀███████...\n" +
                "....██▀..▄▄▄▄....▀███▄▄▄▄██▀....\n" +
                "....██▄▄██████▄...█████▀▀▀......\n" +
                ".....▀██████████▄████▀..........\n" +
                ".......█████████████............\n" +
                "....▄▄█████████████████▄▄.......\n" +
                "..███▀...██▀▀▀▀████...▀███▄.....\n" +
                ".........██.....▀██▄....▀▀██....\n" +
                ".........▀▀.......▀▀............\n" +
                "................................\n" +
                "Reggie 启动成功");
    }
}
